2020-2021 Sunseeker Telemetry and Lighting System
aes256_ex1_encryptDecrypt.c File Reference
#include "driverlib.h"

Go to the source code of this file.

Functions

void main (void)
 

Variables

uint8_t Data [16]
 
uint8_t CipherKey [32]
 
uint8_t DataAESencrypted [16]
 
uint8_t DataAESdecrypted [16]
 
int i = 0
 

Function Documentation

◆ main()

void main ( void  )

Definition at line 78 of file aes256_ex1_encryptDecrypt.c.

References CipherKey, Data, DataAESdecrypted, and DataAESencrypted.

Variable Documentation

◆ CipherKey

uint8_t CipherKey[32]
Initial value:
=
{0x00, 0x01, 0x02, 0x03,
0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0a, 0x0b,
0x0c, 0x0d, 0x0e, 0x0f,
0x10, 0x11, 0x12, 0x13,
0x14, 0x15, 0x16, 0x17,
0x18, 0x19, 0x1a, 0x1b,
0x1c, 0x1d, 0x1e, 0x1f
}

Definition at line 63 of file aes256_ex1_encryptDecrypt.c.

Referenced by main().

◆ Data

uint8_t Data[16]
Initial value:
=
{0x00, 0x11, 0x22, 0x33,
0x44, 0x55, 0x66, 0x77,
0x88, 0x99, 0xaa, 0xbb,
0xcc, 0xdd, 0xee, 0xff
}

AES256 Encryption and Decryption Example

Description: This demo shows how to use the AES Encryption and Decryption

         MSP430FR5969
       -----------------

Key: 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f Plaintext: 00112233445566778899aabbccddeeff Ciphertext: 8ea2b7ca516745bfeafc49904b496089

This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:

  • WDT peripheral
  • AES256

This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.

  • None.

Definition at line 56 of file aes256_ex1_encryptDecrypt.c.

Referenced by main().

◆ DataAESdecrypted

uint8_t DataAESdecrypted[16]

Definition at line 75 of file aes256_ex1_encryptDecrypt.c.

Referenced by main().

◆ DataAESencrypted

uint8_t DataAESencrypted[16]

Definition at line 74 of file aes256_ex1_encryptDecrypt.c.

Referenced by main().

◆ i

int i = 0

Definition at line 76 of file aes256_ex1_encryptDecrypt.c.